package cn.edu.nhic.utils;/**
 * Created by duweiping on 2024/9/4 0:55
 */

/**
 * @author duweiping
 * @date 2024/9/4 0:55
 *
 */
public class HtmlUtils {

    public static StringBuilder generateHtmlHead(String title) {
        return new StringBuilder()
                .append("<!DOCTYPE html>")
                .append("\n")
                .append("<html lang=\"en\">")
                .append("<head>\n" +
                        "    <meta charset=\"UTF-8\">\n" +
                        "    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n" +
                        "    <title>"+ title+ "</title>\n" +
                        "</head>");
    }
}
